<template>
  <VWorkDutyContent
    title="值班排版编辑"
    :id="id"
    :flat="flat"
  ></VWorkDutyContent>
</template>
<script setup lang="ts">
import { watch } from 'vue'
import VWorkDutyContent from './WorkDutyContent.vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const id = ref()
const flat = ref()
watch(
  () => route,
  async () => {
    if (route.path == '/OA/Duty/WorkDutyUpdate') {
      id.value = route.query.id
      flat.value = route.query.flat
    }
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
